<template>
	<div>
		<van-swipe
		:height="getHeight" 
		class="my-swipe" 
		:autoplay="2000" 
		:show-indicators="true"
		indicator-color="#07C160"
		>
		  <van-swipe-item v-for="(item,index) in goodsThumb" :key="index">
				<img class="swipe-img" v-lazy="item" />
			</van-swipe-item>
		</van-swipe>	
	</div>
</template>

<script>
	export default {
		props:['goodsThumb'],
		data(){
			return {	
			}
		},
		
		computed:{
			getHeight(){
				let windowW = document.documentElement.clientWidth;
				return 433 / 433 * windowW;
			}
		}
	}
</script>

<style scoped lang="less">
	.swipe-img{
		width:100%;
	}
</style>
